package com.example.demo1;

import java.util.Scanner;

public class TriangleType {
    public static void main(String[] args) {
        int x=0,y=0,z=0;
        Scanner s1=new Scanner(System.in);
        Scanner s2=new Scanner(System.in);
        Scanner s3=new Scanner(System.in);
        System.out.println("请输入三角形的三条边");
        x=s1.nextInt();
        y=s2.nextInt();
        z=s3.nextInt();
        System.out.println(sanjiao(x,y,z));
    }
    public static String sanjiao(int x,int y,int z){
        if(x<=0||y<=0||z<=0){
            return "输入不正确";
        }
        if(y==x || y==z || z==x){
            if(y==x && y==z && z==x){
                return "等边三角形";
            }
            else{
                return "等腰三角形";
            }
        }
        else if(y+x<=z||x+z<=y||z+y<=x){
            return "无法组成三角形";
        }
        else{
            return "一般三角形";
        }
    }
}
